import { RouteRecordRaw } from 'vue-router';

// export const dynamicRoutes: Array<RouteRecordRaw> = [
//     {
//         path: '/',
// 		name: '/',
// 		component: () => import('/@/layout/index.vue'),
// 		redirect: '/home',
// 		meta: {
// 			isKeepAlive: true,
// 		},
//         children: []
//     }
// ];

export const staticRoutes: Array<RouteRecordRaw> = [
    {
		path: '/',
		redirect: '/home'
	},
    {
        path: '/',
        name:'寸题金库',
        component: () => import('@views/myhome/index.vue'),
        meta: {
            requireAuth: false,
        },
        children:[
            {
                path:'/home',
                name:'首页',
                component:()=>import('@views/myhome/page/content.vue'),
                meta: {
                    requireAuth: false,
                },
            },
            {
                path:'/work-system',
                name:'作业系统',
                component:()=>import('@views/work-system/index.vue'),
                meta: {
                    requireAuth: false,
                },
            },
            {
                path:'/work-system',
                name:'考试系统',
                component:()=>import('@views/work-system/index.vue')
            },
            {
                path:'/work-system',
                name:'使用手册',
                component:()=>import('@views/work-system/index.vue')
            },
        ]
    },
    {
        path:'/login',
        name:'登陆界面',
        component:()=>import('@views/login-register/LoginRegister.vue')
    },
    {//当匹配不到路由就跳转到这个界面
        path: '/:catchAll(.*)',
        name:'默认界面',
        component: () => import('@views/login-register/LoginRegister.vue')
    },
];